package automaton;


public class Configuration extends AbstractConfiguration{
	
	private AbstractConfiguration previousConfig;
	int outputLengthOnCreate;

	public Configuration(Manager manager, Automaton aut, State state,
			String input, String output, AbstractConfiguration previousConfig, int lengthOfOutputOnCreate) {
		super(manager, aut, state, input, output);
		this.previousConfig = previousConfig;
		this.outputLengthOnCreate = lengthOfOutputOnCreate;
	}
	
	public String getOutputStringFromPrevious(){
		String result = previousConfig.getOutputStringFromPrevious() + previousConfig.getOutput().substring(0, this.outputLengthOnCreate);
		return result;
	}
}
